package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

/**
 * @Auther xjw
 * @Date 2019/1/18 1619
 * @Description
 */
@TableName(value = "t_activities")
public class Activity {


    public Activity() {
    }

    public Activity(String id, String name, LocalDateTime startTime, LocalDateTime endTime, String description) {
        this.id = id;
        this.name = name;
        this.startTime = startTime;
        this.endTime = endTime;
        this.description = description;
    }

    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.UUID)
    private String id;

    @JSONField(name = "Name")
    @TableField(value = "Name")
    private String name;

    @JSONField(name = "StartTime", format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "StartTime")
    private LocalDateTime startTime;

    @JSONField(name = "EndTime", format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "EndTime")
    private LocalDateTime endTime;

    @JSONField(name = "Description")
    @TableField(value = "Description")
    private String description;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
